package com.xintoucloud.springbootmybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xintoucloud.springbootmybatisplus.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper extends BaseMapper<Student> {
    @Select("select * from t_stu where sid=#{id}")
    Student queryById(Integer id);

    List<Student> queryByConditionxx(@Param("gender") String gender, @Param("address") String address);

}
